/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prettypenny;

  
/* DB Struture
     * car: carId, make, model, fuelType, regNum
     * carService: serviceID, clientId, carId, locationId, mechanicId, typeId, serviceDate, serviceTime, description, price, bookingDate, mileage
     * client: clientId, forname, surname, dob, addLine1, addLine2, city, county, postcode, homeNum, mobileNum, email
     * location: locationId, branch
     * mechanic: mechanicId, forename, surname, mobNum
     * serviceType: typeId, typeOfService
     */
import java.sql.*;
import java.util.ArrayList;

public class Client { // !!!
    private int clientID;
    private String clientSurname;
    private String clientForename;
    private String clientDoB;
    private String clientAdd1;
    private String clientAdd2;
    private String clientCity;
    private String clientCounty;
    private String clientPostcode;
    private String clientHomeNum;
    private String clientMobile;  
    private String clientEmail;

    
    public Client(int id, String forename, String surname, String dob, String addLine1, String addLine2, String city, String county, String postcode, String homeNum, String mobile, String email) {
        this.clientID = id;
        this.clientEmail = email;
        this.clientForename = forename;
        this.clientSurname = surname;
        this.clientDoB = dob;
        this.clientAdd1 = addLine1;
        this.clientAdd2 = addLine2;
        this.clientCity = city;
        this.clientCounty = county;
        this.clientHomeNum = homeNum;
        this.clientPostcode = postcode;
        this.clientCounty = county;
        this.clientMobile = mobile;
        
    }
    public void setID(int value) {
        this.clientID = value;
    }
    public void setSurname(String value) {
        this.clientSurname = value;
    }
    public void setForename(String value) {
        this.clientForename = value;
    }
    public void setDoB(String value) {
        this.clientDoB = value;
    }
    public void setMobile(String value) {
        this.clientMobile = value;
    }
    public void setEmail(String value) {
        this.clientEmail = value;
    }
    public void setCounty (String value) {
        this.clientCounty = value;
    }
    public void setHomeNum (String value) {
        this.clientHomeNum = value;
    }
    public void setPostCode (String value) {
        this.clientPostcode = value;
    }
    public void setAdd1 (String value) {
        this.clientAdd1 = value;
    }
    public void setAdd2 (String value) {
        this.clientAdd2 = value;
    }
    public void setCity (String value) {
        this.clientCity= value;
    }
    public String getName() {
        return clientForename + " " + clientSurname;
    }
    public String getSurname() {
        return clientSurname;
    }
    public String getForename() {
        return clientForename;
    }
    public String getPostCode() {
        return clientPostcode;
    }
    public String getAdd1() {
        return clientAdd1;
    }
    public String getAdd2() {
        return clientAdd2;
    }
    public String getCity() {
        return clientCity;
    }
    public String getCounty() {
        return clientCounty;
    }
    public String getHomeNum() {
        return clientHomeNum;
    }
    public String getDoB() {
        return clientDoB;
    }
    public String getMobile() {
        return clientMobile;
    }
    public String getEmail() {
        return clientEmail;
    }
    public int getID() {
        return clientID;
    }
    
}
